package Listener;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import Controller.CtrlMain;

public class LMenuBar implements ActionListener{
		private CtrlMain Ctrl;
		
		public LMenuBar(CtrlMain _control)
		{
			Ctrl = _control;
		}

		@Override
		public void actionPerformed(ActionEvent e) {
			if(e.getActionCommand().equals("Utilisateur")) {
				Ctrl.displayUser();
			}
			else if(e.getActionCommand().equals("A Propos")) {
				Ctrl.aPropos();
			}
			else if(e.getActionCommand().equals("Quit")) {
				Ctrl.quit();
			}
		}

}
